<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <div id="btn">212121</div>
  <script>
    const broad = new BroadcastChannel('music')
    broad.postMessage(1)
    broad.onmessage = function(event) {
      console.log('BroadcastChannel', event);
    }

    window.addEventListener('message', function(event) {  
      console.log('Received postmessage:', event.data);  
      source = event.source
      // event.source.postMessage('dsdfsdfsds')
    }, false);
  </script>
</body>
</html>